﻿export default [
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/login',
      },
    ],
  },
  {
    name: 'ssh',
    icon: 'form',
    path: '/ssh',
    component: './ssh',
  },
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        // authority: ['admin', 'user'],
        routes: [
          {
            path: '/',
            redirect: '/machine/list',
          },
        
          {
            name: 'machine',
            icon: 'table',
            path: '/machine/list',
            component: './machine/list',
          },
          {
            name: 'machine.edit',
            icon: 'form',
            path: '/machine/edit',
            hideInMenu: true,
            component: './machine/edit',
          },
          {
            name: 'setting',
            icon: 'setting',
            path: '/setting',
            routes: [
              {
                name: 'dict',
                icon: 'smile',
                path: '/setting/dict/list',
                component: './setting/dict/list',
              },
              {
                name: 'dict.edit',
                icon: 'bars',
                path: '/setting/dict/edit',
                hideInMenu: true,
                component: './setting/dict/edit',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
